package co.lq.modules.activity.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import co.lq.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 砍价表
 * </p>
 *
 * @author billy
 * @since 2019-12-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StoreBargain对象", description = "砍价表")
public class StoreBargain extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "砍价产品ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long              id;

    @ApiModelProperty(value = "关联产品ID")
    private Long              productId;

    @ApiModelProperty(value = "砍价活动名称")
    private String            title;

    @ApiModelProperty(value = "砍价活动图片")
    private String            image;

    @ApiModelProperty(value = "单位名称")
    private String            unitName;

    @ApiModelProperty(value = "库存")
    private Integer           stock;

    @ApiModelProperty(value = "销量")
    private Integer           sales;

    @ApiModelProperty(value = "砍价产品轮播图")
    private String            images;

    @ApiModelProperty(value = "砍价开启时间")
    private Integer           startTime;

    @ApiModelProperty(value = "砍价结束时间")
    private Integer           stopTime;

    @ApiModelProperty(value = "砍价产品名称")
    private String            productName;

    @ApiModelProperty(value = "砍价金额")
    private BigDecimal        price;

    @ApiModelProperty(value = "砍价商品最低价")
    private BigDecimal        minPrice;

    @ApiModelProperty(value = "每次购买的砍价产品数量")
    private Integer           num;

    @ApiModelProperty(value = "用户每次砍价的最大金额")
    private BigDecimal        bargainMaxPrice;

    @ApiModelProperty(value = "用户每次砍价的最小金额")
    private BigDecimal        bargainMinPrice;

    @ApiModelProperty(value = "用户每次砍价的次数")
    private Integer           bargainNum;

    @ApiModelProperty(value = "砍价状态 0(到砍价时间不自动开启)  1(到砍价时间自动开启时间)")
    private Integer           status;

    @ApiModelProperty(value = "砍价详情")
    private String            description;

    @ApiModelProperty(value = "反多少积分")
    private BigDecimal        giveIntegral;

    @ApiModelProperty(value = "砍价活动简介")
    private String            info;

    @ApiModelProperty(value = "成本价")
    private BigDecimal        cost;

    @ApiModelProperty(value = "排序")
    private Integer           sort;

    @ApiModelProperty(value = "是否删除 0未删除 1删除")
    private Integer           isDel;

    @ApiModelProperty(value = "添加时间")
    private Integer           addTime;

    @ApiModelProperty(value = "是否包邮 0不包邮 1包邮")
    private Integer           isPostage;

    @ApiModelProperty(value = "邮费")
    private BigDecimal        postage;

    @ApiModelProperty(value = "砍价规则")
    private String            rule;

    @ApiModelProperty(value = "砍价产品浏览量")
    private Integer           look;

    @ApiModelProperty(value = "砍价产品分享量")
    private Integer           share;

}
